<template>
  <header class="head-nav">
    <a href="#" class="logo">
      <img src="https://img.okay.do/acagrid/static/images/default/default_badge.png@76h_76w">
      <div class="school-info">
        <p>天河学院</p>
        <p>学术成果管理系统</p>
      </div>
    </a>
    <ul class="nav-info">
      <li>联系客服</li>
      <li>邀请同事</li>
      <li><i class="el-icon-message"></i></li>
      <li>
        <el-dropdown trigger="click">
          <span class="el-dropdown-link">
            李云生
            <i class="el-icon-caret-bottom"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>个人信息</el-dropdown-item>
            <el-dropdown-item>学院信息</el-dropdown-item>
            <el-dropdown-item>去个人端</el-dropdown-item>
            <el-dropdown-item>退出登录</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </li>
      <li><el-button>切换身份</el-button></li>
    </ul>
  </header>
</template>

<script>
export { default } from './HeadNav';
</script>

<style scoped lang='scss'>
header {
  width: 100%;
  height: 60px;
  color: #fff;
  background: var(--header-bgcolor);
  font-size: 14px;
  z-index: 999;
  position: fixed;
  left: 0;
  top: 0;
}
.logo {
  display: inline-block;
  padding: 11px 20px;
  text-decoration: none;
  color: #fff;
  img {
    float: left;
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 18px;
  }
}
.school-info {
  margin-left: 50px;
}
.nav-info {
  float: right;
  list-style: none;
  li {
    float: left;
    display: inline-block;
    padding: 0 20px;
    line-height: 60px;
    border-left: 1px solid #1f2d3d;
  }
  .el-dropdown {
    color: #fff;
    cursor: pointer;
    height: 40px;
  }
  button {
    display: inline-block;
    padding: 7px 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    &:hover {
      border-color: #fff;
    }
  }
}
</style>
